package com.clip.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.clip.dao.UserRegApplyDAO;
import com.clip.entity.UserRegApply;

@Service
@Transactional
public class UserRegApplyService {
	@Autowired
	private UserRegApplyDAO userRegApplyDAO;
	
	public Integer save(UserRegApply userRegApply){
		if(userRegApply==null)
			return 0;
		else
			return userRegApplyDAO.save(userRegApply);
	}
	public UserRegApply findUserRegApplyById(Integer id){
		return this.userRegApplyDAO.findById(id);
	}
	
}
